package com.dy.lock.screen.service;

import java.util.List;
import java.util.Map;

import com.dy.lock.screen.pojo.CustomerBlacklistInfo;

/**
 * 黑名单service
 * 
 * @author java
 * 
 */
public interface CustomerBlacklistService {

	/**
	 * 查询总条数
	 * 
	 * @param para
	 * @return
	 */
	public Integer queryCount(Map<String, Object> para);

	/**
	 * 分页查询
	 * 
	 * @param para
	 * @return
	 */
	public List<CustomerBlacklistInfo> queryPage(Map<String, Object> para);

	/**
	 * 保存信息
	 * 
	 * @param blacklistInfo
	 * @return
	 */
	public int save(CustomerBlacklistInfo blacklistInfo);

	/**
	 * 通过id查询
	 * 
	 * @param id
	 * @return
	 */
	public CustomerBlacklistInfo queryByPrimaryKey(String id);

	/**
	 * 根据拉黑客户id和被被拉黑客户id查询
	 * 
	 * @param blacklistInfo
	 * @return
	 */
	public CustomerBlacklistInfo queryByBlackIdAndBeBlackId(
			CustomerBlacklistInfo blacklistInfo);

	/**
	 * 移除黑名单
	 * 
	 * @param blacklistInfo
	 * @return
	 */
	public int delete(CustomerBlacklistInfo blacklistInfo);

}
